0ff409ecdf22d68eb855793c5da1b55a776260c7,modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/passthru/SourceHandler.java,SourceHandler,timeout,#NHttpServerConnection#,313

Before Change


                state == ProtocolState.RESPONSE_HEAD) {
            informWriterError(conn);
            isTimeoutOccurred = true;
            log.warn(((LoggingNHttpServerConnection) conn).getIOSession().getRemoteAddress() +
                    " :Connection time out after " + PassThroughConstants.HTTP_SOCKET_TIMEOUT + " : " +
                    conn.getSocketTimeout() +  " while writing the response: ");
        } else if (state == ProtocolState.REQUEST_DONE){
        	isTimeoutOccurred = true;
            log.warn(((LoggingNHttpServerConnection) conn).getIOSession().getRemoteAddress() +
                    " :Connection time out after " + PassThroughConstants.HTTP_SOCKET_TIMEOUT + " : " +
                    conn.getSocketTimeout() +  " after request is read: ");
        }

After Change



            log.warn("Connection time out while reading the request: " + conn +
                     " Socket Timeout : " + conn.getSocketTimeout() +
                     getConnectionLoggingInfo(conn));

        } else if (state == ProtocolState.RESPONSE_BODY ||
                state == ProtocolState.RESPONSE_HEAD) {
            informWriterError(conn);
            isTimeoutOccurred = true;
            log.warn("Connection time out while writing the response: " + conn +
                     " Socket Timeout : " + conn.getSocketTimeout() +
                     getConnectionLoggingInfo(conn));
        } else if (state == ProtocolState.REQUEST_DONE){
        	isTimeoutOccurred = true;
            log.warn("Connection time out after request is read: " + conn +